package com.hxzy.framework.xss.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Collections;
import java.util.List;

/**
 * @Author wy
 * @Description xss跨域攻击配置
 * @Date 2024/1/22 17:11
 * @Version 1.0
 */
@ConfigurationProperties(prefix = "saas.xss")
@Getter
@Setter
public class XssProperties {

    /**
     * 是否开启，默认为 true
     */
    private boolean enable = true;
    /**
     * 需要排除的 URL，默认为空
     */
    private List<String> excludeUrls = Collections.emptyList();

}
